package com.situ.springboot.lambda;

public class IntefaceDemo {
    public static void main(String[] args) {
        IA a = new B();
        a.test3();
        IA.test4();
    }
}

interface IA{
    public abstract void test1();
    public abstract void test2();
    // public abstract void test3();
    default void test3() {
        System.out.println("IA.test3");
    }

    public static void test4() {
        System.out.println("IA.test4");
    }
}

class B implements IA{

    @Override
    public void test1() {

    }

    @Override
    public void test2() {

    }

   /* @Override
    public void test3() {
        System.out.println("B.test3");
    }*/
}

class C implements  IA{

    @Override
    public void test1() {

    }

    @Override
    public void test2() {

    }
}
